<template>
  <div class="main-body">
    <el-row :gutter="15">
      <el-col :span="4"><div class="left-body">
        <el-button @click="findTable">查找</el-button>
        <el-button>清空</el-button>
        <search title="生管人员" :url="productionUserUrl" :table-fields="productionUserFields" :allow-check="1" index="ooag001" ref="productionUser"></search>
        <search title="部门" :url="departmentListUrl" :table-fields="departmentListFields" :allow-check="1" index="ooeg001" ref="department"></search>
        <search title="供应商" :url="supplierListUrl" :table-fields="supplierFields" :allow-check="1" index="pmaa001" ref="supplier"></search>
        <search title="客户订购单号" :url="salertOderNoListUrl" :table-fields="salertOderNoFields" :allow-check="1" index="sfaaua001" ref="salerOrder"></search>
        <search title="工单单号" :url="shopOrderUrl" :table-fields="shopOrderFields" :allow-check="1" index="sfaadocno" ref="shopOrder"></search>
        <search title="生产料号" :url="productionitemUrl"  :table-fields="productionitemFields" :allow-check="1" index="imaa001" ref="productionItem"></search>
        <el-input placeholder="品名" v-model="queryParams.imaal003"></el-input>
        <el-input placeholder="规格" v-model="queryParams.imaal004"></el-input>
        <search title="发料料号" :url="sendItemUrl" :table-fields="sendItemFields" :allow-check="1" index="imaa001" ref="sendItem"></search>
        <el-input placeholder="发料品名" v-model="queryParams.imaal003_2"></el-input>
        <el-input placeholder="发料规格" v-model="queryParams.imaal004_1"></el-input>
        <el-date-picker placeholder="预计开工日" v-model="queryParams.sfaa019"></el-date-picker>
        <el-date-picker placeholder="预计完工日" v-model="queryParams.sfaa020"></el-date-picker>
        <el-input placeholder="打印次数" v-model="queryParams.sfaaud011"></el-input>
        <el-select placeholder="工单类型" v-model="queryParams.sfaa003"></el-select>
        <el-select placeholder="状态" v-model="queryParams.sfaastus"></el-select>
        <el-select placeholder="工单进度" v-model="queryParams.sfeastus"></el-select>
        <el-date-picker placeholder="单据日期" v-model="queryParams.sfaadocdt"></el-date-picker>
        <el-date-picker placeholder="发放日期" v-model="queryParams.sfaaud021"></el-date-picker>
        <el-date-picker placeholder="打印日期" v-model="queryParams.sfaaud023"></el-date-picker>
        <el-date-picker placeholder="结案日期" v-model="queryParams.sfaa047"></el-date-picker>
        <el-input placeholder="备注" v-model="queryParams.sfaaua004"></el-input>
        <el-select placeholder="配件" v-model="queryParams.pj"></el-select>
        <el-select placeholder="压筒" v-model="queryParams.yt"></el-select>
        <el-select placeholder="电机" v-model="queryParams.dj"></el-select>
        <el-select placeholder="叶轮" v-model="queryParams.yl"></el-select>
        <el-select placeholder="泵体" v-model="queryParams.bt"></el-select>
        <el-select placeholder="包装" v-model="queryParams.bz"></el-select>
<!--        <div>-->
<!--          含已结案工单<el-switch></el-switch>-->
<!--        </div>-->
      </div></el-col>
      <el-col :span="20"><div>
<!--       上面四个tab-->
        <div class="right-top">
          <el-tabs type="border-card">
            <el-tab-pane label="工单数据">
              <DYTable :result="result" allow-check="0" allowdbclick="0" :loading="loading" :table-fields="mainTableFields" @rowDbClick="loadInfo"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="工单来源">工单来源</el-tab-pane>
            <el-tab-pane label="生产料号明细">生产料号明细</el-tab-pane>
            <el-tab-pane label="产品序号">产品序号</el-tab-pane>
          </el-tabs>
        </div>
<!--        <pagination-->
<!--          :v_show="total >9"-->
<!--          :total="total"-->
<!--          :page.sync="queryParams.pageNum"-->
<!--          :limit.sync="queryParams.pageSize"-->
<!--          @pagination="loadTable"-->
<!--        />-->
<!--       下面12个tab-->
        <div class="right-buttom">
          <el-tabs type="border-card">
            <el-tab-pane label="备料信息">
              <DYTable allowdbclick="0" allow-check="0" :result="blxxResult" :table-fields="findBlxxFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="发退料">
              <DYTable :result="FtlResult" allow-check="0" allowdbclick="0" :table-fields="fitFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="MES">
              <DYTable allowdbclick="0" allow-check="0" :table-fields="MESfields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="工单完工入库">
              <DYTable allow-check="0" allowdbclick="0" :result="gdwgruResult" :table-fields="dgwgrkFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="Run Card">
              <DYTable allowdbclick="0" allow-check="0" :result="runcardResult" :table-fields="runcardFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="报工">
              <DYTable allow-check="0" allowdbclick="0" :result="bgResult" :table-fields="bgFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="工艺进度">
              <DYTable allowdbclick="0" allow-check="0" :table-fields="gyjdFelds"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="委外采购">
              <DYTable :table-fields="wwcgFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="材料请购">
              <DYTable :table-fields="ccqgFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="材料采购">
              <DYTable :table-fields="cccgFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="FQC">
              <DYTable :table-fields="fqcFields"></DYTable>
            </el-tab-pane>
            <el-tab-pane label="PQC">
              <DYTable :table-fields="pqcFields"></DYTable>
            </el-tab-pane>
          </el-tabs>
        </div>

      </div></el-col>
    </el-row>
  </div>
</template>

<script>
import {productionUser,departmentList,supplierList,salertOderNoList,
  shopOrderList,sendItemList,productionitemList,findList,findBlxxList,
  findFtl,findgdwgrk,findruncard,findbg} from '@/api/T100/asfq007'
export default {
  name: "asfq007",
  data(){
    return{
      productionUserUrl:productionUser,
      productionUserFields:[{label:'编号',prop:'ooag001'},{label:'姓名',prop:'ooag011'}],
      departmentListUrl:departmentList,
      departmentListFields:[{label:'部门编号',prop:'ooeg001'},{label:'部门名称',prop:'ooefl003'}],
      supplierListUrl:supplierList,
      supplierFields:[{label:'编号',prop:'pmaa001'},{label:'名称',prop:'ooefl003'}],
      salertOderNoListUrl:salertOderNoList,
      salertOderNoFields:[{label:'编号',prop:'sfaaua001'}],
      shopOrderUrl:shopOrderList,
      shopOrderFields:[{label:'单号',prop:'sfaadocno'},{label:'单据日期',prop:'sfaadocdt'},{label:'类型',prop:'sfaa003'},{label:'来源单号',prop:'sfaa006'},
                      {label:'来源项次',prop:'sfaa007'},{label:'料号',prop:'sfaa010'},{label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},
                      {label:'数量',prop:'sfaa012'},{label:'已发齐套数',prop:'sfaa049'},{label:'入库合格数',prop:'sfaa050'},{label:'报废数',prop:'sfaa056'},
                      {label:'生管人员',prop:'sfaa002'},{label:'全名',prop:'ooag011'},{label:'打印次数',prop:'sfaaud011'},{label:'客户订购号',prop:'sfaaua001'}],
      sendItemUrl:sendItemList,
      sendItemFields:[{label:'料号',prop:'imaa001'},{label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},{label:'类别',prop:'imaa004'},
                      {label:'分类',prop:'imaa009'},{label:'说明',prop:'rtaxl003'},{label:'周期状态',prop:'imaa010'},{label:'说明',prop:'oocql004'}],
      productionitemUrl:productionitemList,
      productionitemFields:[{label:'料号',prop:'imaa001'},{label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},{label:'类别',prop:'imaa004'},
        {label:'分类',prop:'imaa009'},{label:'说明',prop:'rtaxl003'},{label:'周期状态',prop:'imaa010'},{label:'说明',prop:'oocql004'}],
      total:0,
      result:[],
      queryParams:{
        pageNum: 1,
        pageSize: 10,
        sfaa002:'',//生管人员
        sfaa017:'',//部门 or 供应商
        sfaa017_2:'',//供应商
        sfaaua001:'',//客户订购单号
        sfaadocno:'',//工单单号
        sfaa010:'',//生产料号
        imaal003:'',//品名
        imaal004:'',//规格
        sfba006:'',//发料料号
        imaal003_2:'',//发料品名
        imaal004_1:'',//发料规格
        sfaa019:'',//预计开工日
        sfaa020:'',//预计完工日
        sfaaud011:'',//打印次数
        sfaa003:'',//工单类型
        sfaastus:'',//状态
        sfeastus:'',//工单进度,C,E,M则Y（AND sfaastus <> 'X'），其他N（AND sfaastus NOT IN ('X','C','E','M')）
        sfaadocdt:'',//单据日期
        sfaaud021:'',//发放日期
        sfaaud023:'',//打印日期
        sfaa047:'',//结案日期
        sfaaua004:'',//备注
        pj:'',//配件
        yt:'',//压筒
        dj:'',//电机
        yl:'',//叶轮
        bt:'',//泵体
        bz:'',//包装
      },
      loading:false,
      mainTableFields:[{label:'进度',prop:'progress'},{label:'工单进度',prop:'stus'},{label:'工单状态码',prop:'sfaastus'},{label:'存在备料档',prop:'bld'},
                       {label:'工单单别',prop:'gddb'},{label:'工单单号',prop:'sfaadocno'},{label:'部门',prop:'sfaa017'},{label:'部门2',prop:'bmgys'},
                       {label:'客户订购单号',prop:'sfaaua001'},{label:'客户编号',prop:'xmda004'},{label:'客户',prop:'kh'},{label:'单据日期',prop:'sfaadocdt'},
                      {label:'发放日期',prop:'sfaaud021'},{label:'打印日期',prop:'sfaaud023'},{label:'结案日期',prop:'jarq'},{label:'结案/反结案人员',prop:'jary'},
                      {label:'备注',prop:'sfaaua004'},{label:'包材确认信息',prop:'bcqrxx'},{label:'工单类型',prop:'sfaa003'},{label:'生产料号',prop:'sfaa010'},
                      {label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},{label:'工程图号',prop:'imaa041'},{label:'预计开工日',prop:'sfaa019'},
                      {label:'预计完工日',prop:'sfaa020'},{label:'生管人员',prop:'sfaa002'},{label:'全名',prop:'ooag011'},{label:'成本中心',prop:'sfaa068'},
                      {label:'成本中心名',prop:'sfaa068_desc'},{label:'配件',prop:'pj'},{label:'压筒',prop:'yt'},{label:'电机',prop:'dj'},{label:'叶轮',prop:'yl'},
                      {label:'泵体',prop:'bt'},{label:'包装',prop:'bz'},{label:'生产数量',prop:'sfaa012'},{label:'已发料套数',prop:'sfaa049'},{label:'齐料套数',prop:'sfaa071'},
                      {label:'入库合格数',prop:'sfaa050'},{label:'入库不合格数',prop:'sfaa051'},{label:'审核申请入库数',prop:'shsqrks'},{label:'审核检验入库数',prop:'shjyrks'},
                      {label:'已出货量',prop:'xmda014'},{label:'已出通数量',prop:'xmda031'},{label:'未出货数量',prop:'xmda005'},{label:'MES已派工',prop:'mespgl'},
                      {label:'MES未派工',prop:'meswpg'},{label:'MES已完成',prop:'mesywc'},{label:'MES未完成',prop:'meswwc'},{label:'MES在制数',prop:'meszzl'},
                      {label:'MES合格数',prop:'meshgl'},{label:'MES不合格数',prop:'mesbhg'},{label:'母工单号',prop:'sfaa021'},{label:'前工单',prop:'sfaa025'},
                      {label:'生产单位',prop:'sfaa013'},{label:'最后入库日',prop:'sfaa046'},{label:'特性',prop:'sfaa011'},{label:'打印次数',prop:'sfaaud011'}],
      blxxResult:[],
      findBlxxUrl:findBlxxList,
      findBlxxFields:[{label:'发料料号',prop:'sfba006'},{label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},{label:'产品特征',prop:'sfba021'},{label:'特征值说明',prop:'sfba021_desc'},
                      {label:'替代建议码',prop:'replace'},{label:'BOM料号',prop:'sfba005'},{label:'品名',prop:'sfba005_desc'},{label:'规格',prop:'sfba005_desc1'},
                      {label:'作业编号',prop:'sfba003'},{label:'作业编号说明',prop:'sfba003_desc'},{label:'作业序',prop:'sfba004'},{label:'应发数量',prop:'sfba013'},
                      {label:'倒扣料',prop:'sfba009'},{label:'客供料',prop:'sfba028'},{label:'已发数量',prop:'sfba016'},{label:'超领数量',prop:'sfba025'},{
                      label:'未发数量',prop:'num1'},{label:'未足套数量',prop:'num2'},{label:'报废数量',prop:'sfba017'},{label:'盘盈亏数量',prop:'sfba018'},
                      {label:'指定库位',prop:'sfba019'},{label:'库位名称',prop:'sfba019_desc'},{label:'指定储位',prop:'sfba020'},{label:'必要特性',prop:'sfba008'},
                      {label:'库存库位',prop:'kckw'},{label:'现有库存',prop:'num3'},{label:'现有净库存',prop:'num4'}],
      FtlResult:[],
      fitFields:[{label:'单据状态',prop:'sfdastus'},{label:'类型',prop:'sfda002'},{label:'发料日期',prop:'sfda001'},{label:'发退料单号',prop:'asft310'},
                {label:'项次',prop:'sfdcseq'},{label:'项序',prop:'sfddseq1'},{label:'发退料号',prop:'sfdc004'},{label:'品名',prop:'imaal003'},
                {label:'规格',prop:'imaal004'},{label:'产品特征',prop:'sfdc005'},{label:'特征值说明',prop:'sfdc005_desc'},{label:'发料库位',prop:'sfdc012'},
                {label:'库位名称',prop:'sfdc012_desc'},{label:'发料储位',prop:'sfdc013'},{label:'储位名称',prop:'sfdc013_desc'},{label:'发料批号',prop:'sfdc014'},
                {label:'库管理特征',prop:'sfdc016'},{label:'单位',prop:'sfdc006'},{label:'单位说明',prop:'sfdc006_desc'},{label:'发退数量',prop:'sfdc008'},
                {label:'参考单位',prop:'sfdc009'},{label:'参考单位说明',prop:'sfdc009_desc'},{label:'参考发退数量',prop:'sfdc011'}],
      MESfields:[{label:'SFC',prop:'gzanuc002'},{label:'SFC数量',prop:'gzanuc009'},{label:'工艺路线',prop:'gzanuc007'},{label:'工序1',prop:'gx1'},
                {label:'工序2',prop:'gx2'},{label:'工序3',prop:'gx3'},{label:'工序4',prop:'gx4'},{label:'工序5',prop:'gx5'},{label:'工序6',prop:'gx6'},
                {label:'工序7',prop:'gx7'},{label:'工序8',prop:'gx8'},{label:'工序9',prop:'gx9'},{label:'工序10',prop:'gx10'},{label:'工序11',prop:'gx11'},
                {label:'工序12',prop:'gx12'},{label:'工序13',prop:'gx13'},{label:'工序14',prop:'gx14'},{label:'工序15',prop:'gx15'},{label:'工序16',prop:'gx16'},
                {label:'工序17',prop:'gx17'},{label:'工序18',prop:'gx18'}],
      gdwgruResult:[],
      dgwgrkFields:[{label:'单据状态',prop:'sfeastus'},{label:'入库日期',prop:'sfea001'},{label:'入库单号',prop:'sfecdocno'},{label:'入库单号',prop:'asft340'},{label:'项次',prop:'sfecseq'},
                    {label:'FQC',prop:'sfeb002'},{label:'入库类型',prop:'sfeb003'},{label:'FQC单号',prop:'sfec002'},{label:'FQC项次',prop:'sfec003'},
                    {label:'判定结果',prop:'qcbc002'},{label:'判定结果说明',prop:'qcbc002_desc'},{label:'入库料号',prop:'sfec005'},{label:'品名',prop:'imaal003'},
                    {label:'规格',prop:'imaal004'},{label:'产品特征',prop:'sfec006'},{label:'特征值说明',prop:'sfec006_desc'},{label:'入库库位',prop:'sfec012'},
                    {label:'库位名称',prop:'inayl003'},{label:'入库储位',prop:'sfec013'},{label:'储位名称',prop:'inab003'},{label:'入库批号',prop:'sfec014'},
                    {label:'库存特征',prop:'sfec015'},{label:'单位',prop:'sfec008'},{label:'单位说明',prop:'oocal003'},{label:'入库数量',prop:'sfec009'},
                    {label:'参考单位',prop:'sfec010'},{label:'参考单位说明',prop:'sfec010_desc'},{label:'参考入库数量',prop:'sfec011'},{label:'制造日期',prop:'sfec028'},{label:'有效日期',prop:'sfec016'}],
      runcardResult:[],
      runcardFields:[{label:'Run Card',prop:'sfca001'},{label:'RUN CARD',prop:'asft301'},{label:'生产数量',prop:'sfca003'},
                    {label:'预计开工日',prop:'sfaa019_1'},{label:'预计完工日',prop:'sfaa020_1'},{label:'完工数量',prop:'sfca004'},{label:'在制量',prop:'num'},],
      bgResult:[],
      bgFields:[{label:'单据状态',prop:'sffbstus'},{label:'报工单号',prop:'sffbdocno'},{label:'报工单号',prop:'asft335'},{label:'报工类别',prop:'sffb001'},
                {label:'报工日期',prop:'sffbdocdt'},{label:'Run Card',prop:'sffb006'},{label:'报工料号',prop:'sffb029'},{label:'品名',prop:'imaal003'},
                {label:'规格',prop:'imaal004'},{label:'作业编号',prop:'sffb007'},{label:'作业编号说明',prop:'oocql004'},{label:'作业序',prop:'sffb008'},
                {label:'工作站',prop:'sffb009'},{label:'工作站名称',prop:'ecaal003'},{label:'良品数量',prop:'sffb017'},{label:'报废数量',prop:'sffb018'},
                {label:'当站下线数量',prop:'sffb019'},{label:'回收数量',prop:'sffb020'}],
      gyjdFelds:[{label:'RUN CARD',prop:'sfcb001'},{label:'RUN CARD',prop:'asft3011'},{label:'项次',prop:'sfcb002'},{label:'作业编号',prop:'sfcb003'},
                {label:'说明',prop:'oocql004'},{label:'作业序',prop:'sfcb004'},{label:'工作站',prop:'sfcb011'},{label:'工作站名称',prop:'ecaal003'},
                {label:'标准产出量',prop:'sfcb027'},{label:'在制量',prop:'sfcb050'},{label:'良品转入',prop:'sfcb028'},{label:'返工转入',prop:'sfcb029'},
                {label:'回收转入',prop:'sfcb030'},{label:'分割转入',prop:'sfcb031'},{label:'合并转入',prop:'sfcb032'},{label:'良品转出',prop:'sfcb033'},
                {label:'返工转出',prop:'sfcb034'},{label:'回收转出',prop:'sfcb035'},{label:'当站报废',prop:'sfcb036'},{label:'当站下线',prop:'sfcb037'},
                {label:'分割转出',prop:'sfcb038'},{label:'合并转出',prop:'sfcb039'},{label:'委外加工数',prop:'sfcb041'},{label:'委外完工数',prop:'sfcb042'},
                {label:'盘点数',prop:'sfcb043'},{label:'待Move in数',prop:'sfcb046'},{label:'待Check in数',prop:'sfcb047'},{label:'待Check out数',prop:'sfcb048'},{label:'待Move out数',prop:'sfcb049'}],
      wwcgFields:[{label:'单据状态',prop:'pmdlstus'},{label:'采购单号',prop:'pmdndocno'},{label:'采购单号',prop:'apmt501'},{label:'项次',prop:'pmdnseq'},
                  {label:'料件编号',prop:'pmdn001'},{label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},{label:'产品特征',prop:'pmdn002'},
                  {label:'特征值说明',prop:'pmdn002_desc'},{label:'采购单位',prop:'pmdn006'},{label:'单位说明',prop:'oocal003'},{label:'采购数量',prop:'pmdn007'},
                  {label:'参考单位',prop:'pmdn008'},{label:'参考单位说明',prop:'pmdn008_desc'},{label:'参考采购数量',prop:'pmdn009'},{label:'交货日期',prop:'pmdn012'},
                  {label:'到厂日期',prop:'pmdn013'},{label:'到库日期',prop:'pmdn014'}],
      ccqgFields:[{label:'请购单号',prop:'pmdadocno'},{label:'请购单号',prop:'apmt400'},{label:'请购日期',prop:'pmdadocdt'},{label:'请购人员',prop:'pmda002'},
                  {label:'全名',prop:'ooag011'},{label:'请购部门',prop:'pmda003'},{label:'部门名称',prop:'ooefl004'},{label:'项次',prop:'pmdbseq'},
                  {label:'订单项次',prop:'pmdb002'},{label:'请购料号',prop:'pmdb004'},{label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},
                  {label:'产品特征',prop:'pmdb005'},{label:'特征值说明',prop:'pmdb005_desc'},{label:'单位',prop:'pmdb007'},{label:'单位说明',prop:'oocal003'},
                  {label:'需求数量',prop:'pmdb006'},{label:'参考单位',prop:'pmdb009'},{label:'参考单位说明',prop:'pmdb009_desc'},{label:'参考需求数量',prop:'pmdb008'},
                  {label:'需求日期',prop:'pmdb030'},{label:'已转采购量',prop:'pmdb049'}],
      cccgFields:[{label:'单据状态',prop:'pmdlstus'},{label:'采购单号',prop:'pmdndocno'},{label:'采购单号',prop:'apmt500'},{label:'项次',prop:'pmdnseq'},
                  {label:'采购料号',prop:'pmdn001'},{label:'品名',prop:'imaal003'},{label:'规格',prop:'imaal004'},{label:'产品特征',prop:'pmdn002'},
                  {label:'特征值说明',prop:'pmdn002_desc'},{label:'采购单位',prop:'pmdn006'},{label:'单位说明',prop:'oocal003'},{label:'采购数量',prop:'pmdn007'},
                  {label:'参考单位',prop:'pmdn008'},{label:'参考单位说明',prop:'pmdn008_desc'},{label:'参考采购数量',prop:'pmdn009'},{label:'交货日期',prop:'pmdn012'},
                  {label:'到厂日期',prop:'pmdn013'},{label:'到库日期',prop:'pmdn014'}],
      fqcFields:[{label:'单据状态',prop:'qcbastus'},{label:'检验日期',prop:'qcbadocdt'},{label:'检验单号',prop:'qcbadocno'},{label:'检验单号',prop:'aqct300'},
                {label:'来源单号',prop:'qcba001'},{label:'来源项次',prop:'qcba002'},{label:'送验量',prop:'qcba017'},{label:'判定结果',prop:'qcbc002'},
                {label:'判定结果说明',prop:'qcbc002_desc'},{label:'判定区分',prop:'qcbc012'},{label:'判定数量',prop:'qcbc009'}],
      pqcFields:[{label:'单据状态',prop:'qcbastus'},{label:'检验日期',prop:'qcbadocdt'},{label:'检验单号',prop:'qcbadocno'},{label:'检验单号',prop:'aqct3001'},
                {label:'来源单号',prop:'qcba001'},{label:'来源项次',prop:'qcba002'},{label:'作业编号',prop:'qcba006'},{label:'说明',prop:'oocql004'},
                {label:'作业序',prop:'qcba007'},{label:'送验量',prop:'qcba017'},{label:'判定结果',prop:'qcbc002'},{label:'判定结果说明',prop:'qcbc002_desc'},
                {label:'判定区分',prop:'qcbc012'},{label:'判定数量',prop:'qcbc009'}],
      gdlyFields:[{label:'项次',prop:'sfabseq'},{label:'来源类型',prop:'sfab001'},{label:'来源单号',prop:'sfab002'},{label:'来源项次',prop:'sfab003'},
                {label:'来源项序',prop:'sfab004'},{label:'分批序',prop:'sfab005'},{label:'分配优先序',prop:'sfab006'},{label:'原始需求数量',prop:'a1'},
                {label:'需求单位',prop:'a2'},{label:'拆合生产单位需求量',prop:'a3'},{label:'生产单位',prop:'a4'},{label:'已开工单量',prop:'a5'},
                {label:'本次转开工单量',prop:'sfab007'},{label:'客户编号',prop:'a6'},{label:'交易对象简称',prop:'pmaal004'},{label:'部门',prop:'a7'},
                {label:'成本中心名称',prop:'ooefl003'},{label:'业务人员',prop:'a8'},{label:'全名',prop:'oofa011'}],
      gdlyResult:[],
    }
  },
  methods:{
    loadTable(){},
    findTable(){
      this.loading = true
      this.queryParams.sfaa002 = this.$refs.productionUser.queryParams.keyword
      this.queryParams.sfaa017 = this.$refs.department.queryParams.keyword
      this.queryParams.sfaa017_2 = this.$refs.supplier.queryParams.keyword
      this.queryParams.sfaaua001 = this.$refs.salerOrder.queryParams.keyword
      this.queryParams.sfaadocno = this.$refs.shopOrder.queryParams.keyword
      this.queryParams.sfaa010 = this.$refs.productionItem.queryParams.keyword
      this.queryParams.sfba006 = this.$refs.sendItem.queryParams.keyword
      findList(this.queryParams).then(resp=>{
        if (resp.code =='200'){
          this.result = resp.rows
          this.total = resp.total
          this.loading = false
        }
      })
    },
     async loadInfo(row){
      console.log(row)
      findBlxxList(row).then(resp=>{
        if (resp.code == '200'){
          this.blxxResult = resp.rows
        }
      })
      findFtl(row).then(resp=>{
        if (resp.code == '200'){
          this.FtlResult = resp.rows
        }
      })
       findgdwgrk(row).then(resp=>{
         if (resp.code =='200'){
           this.gdwgruResult = resp.rows
         }
       })
       findruncard(roe).then(resp=>{
         if (resp.code =='200'){
           this.runcardResult = resp.rows
         }
       })
       findbg(row).then(resp=>{
         if (resp.code =='200'){
           this.bgResult = resp.rows
         }
       })
    },
  }
}
</script>

<style scoped lang="scss">
.main-body{
  height: 90vh;
  width: 100vw;
  .left-body{
    height: 90vh;
    overflow: scroll;
  }
  .left-body >div{
    margin-top: 0.1rem;
  }
  .right-top{
    height: 40vh;
    overflow: scroll;
  }
  .right-buttom{
    height: 40vh;
    overflow: scroll;
  }
}
</style>
